# MAIN APP CODE
# -----------------------------------------------------------------------------

#= require appInstance.coffee
#= require appSettings.coffee
#= require appMessages.coffee

#= require lib/jquery.min.js
#= require lib/jquery.blink.js
#= require lib/jquery.cookie.js
#= require lib/jquery.countdown.js
#= require lib/jquery.shake.js
#= require lib/moment.min.js

#= require models/baseModel.coffee
#= require models/baseList.coffee
#= require models/countdown.coffee
#= require models/countdownList.coffee
#= require models/eggTimer.coffee

#= require views/baseView.coffee

class AppController

    # Create the main controller and set the view based on the URL path.
    constructor: ->
        window.App.currentView?.init()

        if App.Settings.General.debug
            console.log "AppController.init", new Date()

# Load on document ready.
$(document).ready => window.app = new AppController()